<?php

    namespace App\Http\Controllers\Admin;

    use Illuminate\Http\Request;
    use App\Http\Controllers\Controller;

    class RoleController extends Controller
    {
        /**
         * 角色列表
         * @param Request $request
         *
         * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
         * author: walker
         * Date: 2019/1/28 0028
         * Time: 13:35
         */
        public function rolesLists(Request $request)
        {
            $data = [];

            return view('/admin/role/role_list', $data);
        }

        /**
         * 删除角色
         * author: walker
         * Date: 2019/1/28 0028
         * Time: 13:37
         */
        public function rolesDel()
        {

        }

        /**
         * 添加|编辑 角色表单
         * author: walker
         * Date: 2019/1/28 0028
         * Time: 13:38
         */
        public function rolesForm(Request $request)
        {
            if ($request->isMethod('post')) {
                $params = $request->input();
                if (empty($params['act']) )
                    ajaxReturn(4001,ERR_CODE[4001]);
                switch ($params['act']){
                    case 'add':

                        break;
                    case 'edit':
                        break;
                }
            }
        }

    }
